package com.dmap.knowledge.constants;

/**
 * \* User: silent
 * \* Date: 27/02/18 Time: 15:00
 * \* Description: 知识模块的错误码定义
 * \
 */
public class KnowledgeConstant {
    /**
     * knowledge模块的错误有24开头+3位顺位数字
     */

    public static final Integer RESPONSE_EXIST_SCENE_CODE = 24001;
    public static final String RESPONSE_EXIST_SCENE_ERROR_MSG = "领域名称已存在";

    public static final Integer RESPONSE_EXIST_COLUMN_CODE = 24002;
    public static final String RESPONSE_EXIST_COLUMN_ERROR_MSG = "栏目名称已存在";

    public static final Integer RESPONSE_EXIST_MODULE_CODE = 24003;
    public static final String RESPONSE_EXIST_MODULE_ERROR_MSG = "模块名称已存在";

    public static final Integer RESPONSE_CAN_NOT_DELETE__CODE = 24004;
    public static final String RESPONSE_CAN_NOT_DELETE_ERROR_MSG = "该目录下存在其他文件或目录,请删除该目录文件下的所有文件再删除";
    
    
    public static final Integer RESPONSE_COLUMN_CODE = 24005;
    public static final String RESPONSE_COLUMN_ERROR_MSG = "专栏名称和关键字要有唯一性";
    public static final Integer RESPONSE_APP_COLUMN_MODULE_CODE = 24006;
    public static final String RESPONSE_APP_COLUMN_ERROR_MSG = "app和专栏的关系要有唯一性";


    public static final Integer RESPONSE_ARTICLE_IS_NOT_EXIST_CODE = 24007;
    public static final String RESPONSE_ARTICLE_IS_NOT_EXIST_MSG = "该文章不存在";




    public static final String  HOT_ARTICLE = "dmaphot1";//热门文章缓存   +  lang  + projectId

    public static final String  ARTICLE_TOTAL = "articleTotal";//今日推荐缓存  + lang,projectId

    public static final String TODAY_ARTICLE= "todayArticle";//今日推荐缓存 + lang + projectId

    public static final String ARTICLE_KEY = "articleKey";//今日推荐key的缓存 +lang,projectId

}
